// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ETSException.java

package com.sunwayhorizo.health.ets.exceptions;


public abstract class ETSException extends Exception
{

    public static final String RCS_ID = "$Header: ETSException.java 115.21 2005/03/10 20:33:01 ggarg noship $";
    private String m_mesg;
    private String m_tokenName[];
    private String m_tokenValue[];
    private String m_translatedMesg;

   

    public ETSException()
    {
    }

    public ETSException(String s, String s1, String s2)
    {
        m_mesg = s;
        m_tokenName = new String[1];
        m_tokenValue = new String[1];
        m_tokenName[0] = s1;
        m_tokenValue[0] = s2;
    }

    public ETSException(String s, String as[], String as1[])
    {
        m_mesg = s;
        m_tokenName = new String[as.length];
        m_tokenValue = new String[as1.length];
        for(int i = 0; i < as.length; i++)
        {
            m_tokenName[i] = as[i];
            m_tokenValue[i] = as1[i];
        }

    }

    public ETSException(String s)
    {
        m_mesg = s;
    }

    public String getMessage()
    {
        if(m_translatedMesg == null && m_mesg != null)
        {
           
        }
        if(m_translatedMesg == null || m_translatedMesg.length() == 0)
            if(m_mesg == null)
                m_translatedMesg = getClass().getName() + " : No message text available for this exception";
            else
                m_translatedMesg = getClass().getName() + " : No message text exists for the message : " + m_mesg;
        return m_translatedMesg;
    }

    public String toString()
    {
        String s = getClass().getName() + " : " + getMessage();
        return s;
    }

    static 
    {
       
    }
}
